<template>
  <div id="app">
    <!-- transition是Vue提供的组件过渡动画 -->
    <transition>
      <!-- center在全局样式中定义 -->
      <router-view class="center"></router-view>
    </transition>
  </div>
</template>

<script>
export default {
  name: 'app'
}
</script>

<style lang="less" scopde>
.v-enter, .v-leave-to {
  opacity: 0;
}
.v-enter-to, .v-leave {
  opacity: 1;
}
.v-enter-active, .v-leave-active {
  transition: 0.8s;
}
</style>
